package Job04;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class list {
    public static void main(String[] args) {
        ArrayList<Map<String,Object>> l = new ArrayList<>();
        HashMap<String, Object> m = new HashMap<>();
        m.put("name", "啊亮");
        m.put("id", 1);
        m.put("age", 18);
        l.add(m);

        Map<String, Object> m2 = new HashMap<>();
        m2.put("name", "小美");
        m2.put("id", 2);
        m2.put("age", 19);
        l.add(m2);
        for (Map<String, Object> map : l){
            System.out.println(map);

        }
    }
}
